package day06;
import java.util.Arrays;

public class a12132 {
    public static void main(String[] args) {
        sayHello("zhangsan",23);
        System.out.println(getnum());
        plus(10,50);
        int[] arr=new int[]{};
        arr=testArray(10,50);
        for (int i = 0; i <arr.length ; i++) {
            System.out.println(arr[i]);
        }

    }
    public static void  sayHello(String name,int age){
        if (age>60){
            return;
        }
        System.out.println("我叫"+name+"今天"+age+"岁");
    }
    public static double getnum(){
        return 2.3;
    }
    public static int plus(int num1,int num2){
        int num=num1+num2;
        return num;
    }
    public static int[] testArray(int len,int max){
        int[]arr=new int[len];
        for (int i = 0; i <arr.length ; i++) {
            arr[i]=(int)(Math.random()*(max+1));
        }return arr;
    }
}
